package C07;
import java.util.HashSet;
public class HashSetUse01 {
    public static void main(String[] args) {
        HashSet<String> setStrings = new HashSet<>();
        setStrings.add("张三");
        setStrings.add("张三");
        setStrings.add("李四");
        System.out.println(setStrings);

        for (String s : setStrings) {
            System.out.println(s);
        }

        System.out.println(setStrings.contains("张三"));

    }





}